package com.cskaoyan.util;

import java.util.HashMap;
import java.util.Map;

/**
 * 常量
 * 创建日期: 2022/04/07 15:52
 *
 * @author ChengWenqi
 */

public class Constant {
    // 服务器端的ip+端口号
    public static final String domain = "http://localhost:8083";

    // 前端的ip+端口号
    public static final String front = "http://localhost:8080";

    // 图片文件上传路径
    public static final String pictureLocation = "image/wx/storage/";

    // 静态资源路径
    public static final String staticResources = "D:\\marketPicture\\";

    // 售后管理的status售后状态
    // 0-可申请
    public static final Short aftersaleCouldApply = 0;
    // 1-已申请，待审批
    public static final Short aftersaleApplied = 1;
    // 2-管理员审批通过
    public static final Short aftersaleRecept = 2;
    // 3-管理员退款成功
    public static final Short aftersaleRefund = 3;
    // 4-管理员审核拒绝
    public static final Short aftersaleReject = 4;
    // 5-用户已取消
    public static final Short aftersaleCancel = 5;


    public static final Map<String, String> channelMap = new HashMap<>();
    static{
        channelMap.put("ZTO", "中通快递");
        channelMap.put("YTO","圆通快递");
        channelMap.put("YD","韵达快递");
        channelMap.put("YZPY","邮政快递包裹");
        channelMap.put("EMS","EMS");
        channelMap.put("DBL","德邦快递");
        channelMap.put("FAST","快捷快递");
        channelMap.put("ZJS","宅急送");
        channelMap.put("TNT","TNT快递");
        channelMap.put("UPS","UPS");
        channelMap.put("DHL","DHL");
        channelMap.put("FEDEX","FEDEX联邦(国内件)");
        channelMap.put("FEDEX_GJ","FEDEX联邦(国际件)");
    }
    //订单状态码
    public static final Map<Short, String> orderStatus = new HashMap<>();
    static {
        orderStatus.put((short)101,"未付款");
        orderStatus.put((short)102,"用户取消");
        orderStatus.put((short)103,"系统取消");
        orderStatus.put((short)201,"已付款");
        orderStatus.put((short)202,"申请退款");
        orderStatus.put((short)203,"已退款");
        orderStatus.put((short)301,"已发货");
        orderStatus.put((short)401,"用户收货");
        orderStatus.put((short)402,"系统收货");
        orderStatus.put((short)501,"订单完成");
    }

    //订单状态码
    public static final Map<Short, String> orderStatusTxt = new HashMap<>();
    static {
        orderStatusTxt.put((short)101,"未付款");
        orderStatusTxt.put((short)102,"用户取消");
        orderStatusTxt.put((short)103,"系统取消");
        orderStatusTxt.put((short)201,"已付款");
        orderStatusTxt.put((short)202,"未退款");
        orderStatusTxt.put((short)203,"已退款");
        orderStatusTxt.put((short)301,"已发货");
        orderStatusTxt.put((short)401,"用户收货");
        orderStatusTxt.put((short)501,"订单完成");
    }

    //1：查看未付款的订单信息   2：查看代发货的信息订单  3：查看已经收货的订单信息  4：查看已经收货的订单信息
    public static final Map<Integer, Short> showType = new HashMap<>();
    static {
        showType.put(1,(short)101);
        showType.put(2,(short)201);
        showType.put(3,(short)301);
        showType.put(4,(short)401);

    }

    // 微信小程序：专题页面的相关专题推荐个数  wx/topic/related
    public static final int topicRelatedLimit = 4;
    public static final int topicRelatedPage = 1;
    // 微信小程序：商品相关推荐的相关专题推荐个数
    public static final int goodsRelatedLimit = 6;
    public static final int goodsRelatedPage = 1;
}
